from typing import Literal, List, Union, TypedDict, Type, Optional, Any


class ProductRawModel(TypedDict):
    """商品基础原始模型信息

    Attributes:
        code (str): 商品编码
        name (str): 商品名称
        photos (str|List): 商品图片
        desc (str): 商品HTML
    """

    code: str  # 商品编码
    name: str
    photos: List
    desc: str


class UpdateModel(TypedDict):
    code: str
    name: str
    price: float
